﻿@model Comment

@inject SettingService _settingService
@{
    var setting = _settingService.GetGeneralSetting();
}


    @if (setting.AllowComment)
    {
<form method="post" class="mt-3">
    @if (ViewContext.ModelState.ErrorCount > 0)
    {
        <div asp-validation-summary="All" class="alert alert-danger"></div>
    }
    @Html.HiddenFor(m => m.ArticleId)

    <div class="form-group">
        <textarea class="form-control" asp-for="Content" rows="3" placeholder="回复内容"></textarea>
        <span asp-validation-for="Content" class="text-danger text-sm"></span>
    </div>

    @Html.Partial_CommentAnonymousForm()
    <div class="form-group">
        <button class="btn btn-primary w-25" type="submit">提 交</button>
    </div>
</form>
}